package top.fangw.common.api.openfign.tenant;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.fangw.common.api.vo.TenantInfoVo;
import top.fangw.common.core.result.Result;

@FeignClient(name = "cloud-tenant")
public interface ITenantInfoServiceFeign {
    /**
     * 根据租户id查询租户信息
     * @param tenantId
     * @return
     */
    @GetMapping("/tenant-info/getByTenantIdFeign")
    Result<TenantInfoVo> getByTenantIdFeign(@RequestParam("tenantId") String tenantId);
}
